package gof.com.yew.command;

public class CommandDemo {
	
	public static void main(String[] args) {
		Receiver r = new Receiver("服装批发店", 100);
		Command c1 = new BuyCommand(r);
		Command c2 = new SoldCommand(r);
		Invoker request = new Invoker();
		request.addCom(c1);
		request.addCom(c2);
		request.excuteCom();
	}

}
